<?php
$a = -122.365242;
$b = 125.235641;
$arr = getLatLngRanges($b);
echo 'left ->'.$arr['l'].' right ->'.$arr['r'];

function getLatLngRanges($e){
	//$a = round($e,4);
	$returnArr = array();
	if($e < 0){
		$return['l'] = $e + 0.0001;
		$return['r'] = $e - 0.0001;
	}else{
		$return['r'] = $e + 0.0001;
		$return['l'] = $e - 0.0001;
	}
	return $return;
}